# name : Slides Include Graphics/Image Example by knitr::include_graphics
# key : slides.include_graphics.ex.fig.path
# key : ppt.include_graphics.ex.fig.path
# key : beamer.include_graphics.ex.fig.path
# contributor: Shuguang Sun
# --
\`\`\`{r generate_figures, fig.show = "hide"}
library(knitr)
plot(1:10, col = "green")
plot(1:10, col = "red")
\`\`\`

\`\`\`{r, echo=FALSE, out.width="50%", fig.cap="A nice image."}
knitr::include_graphics(sprintf("%sgenerate_figures-2.png", opts_current$get("fig.path")))
\`\`\`